﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ServiceReferenceSend;
using ServiceReferenceRecived;
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Response.Redirect(@"Form\Login.aspx");
        //ServiceReferenceSend.SendSimpleRequestDto s = new ServiceReferenceSend.SendSimpleRequestDto();
        //s.LineId = 749;
        //s.ReceiverNumbers = "09173143351";
        //s.MessageContent = "salammmmmmm";
        //ServiceReferenceSend.SendServiceClient snd = new ServiceReferenceSend.SendServiceClient();
        //snd.SendSimple(s);

        SendServiceClient sender1 = new SendServiceClient("main");
        ReceiveServiceClient receiver = new ReceiveServiceClient("main1");


        LineSendRequestDto request2 = new LineSendRequestDto();
        request2.LineId = 749;
        request2.MessageContent = "Eshghamm";
        request2.ReceiverNumbers = "9173143351";
        request2.Username = "artak";
        request2.Password = "artak2020";
        long[] trackIds = sender1.RegisterForSend(request2);


        //SendSimpleRequestDto request1 = new SendSimpleRequestDto();
        //request1.LineId = 749;
        //request1.MessageContent = "silam golammm";
        //request1.ReceiverNumbers = "9173143351";
        //request1.SuspendOnSuspendHour = false;
        //long trackId = sender1.SendSimple(request1);
    }
}